package com.cheer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cheer.entity.MallOrderEntity;
import com.cheer.enums.LotteryActTypeEnum;
import com.cheer.pojo.IntegralConsume;
import com.cheer.vo.CreditDateVO;

import java.util.List;

public interface IntegralConsumeService extends IService<IntegralConsume> {

    /**
     * 获取用户今日兑换次数
     * @param id
     * @return
     */
    Integer getExchangeTime(Integer id);

    /**
     * 新插入信息
     * @param userId
     * @param exchange
     */
    void save(Integer userId, Integer exchange, Integer exchangeNum ,LotteryActTypeEnum lotteryActTypeEnum);

    /**
     * 根据用户ID 获取兑换记录
     * @param userId
     * @return
     */
    List<CreditDateVO> listByUserId(Integer userId);

}
